import Layout from '@/layout'

export default {
  path: '/learn',
  component: Layout,
  redirect: '/learn/list',
  name: 'Learn',
  meta: { title: '商学院', icon: 'message', noCache: true, roles: ['learn'] },
  children: [
    {
      path: 'create',
      name: 'LearnCreate',
      component: () => import('@/views/learn/create'),
      meta: { title: '添加', icon: 'star', noCache: true }
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/learn/edit'),
      meta: { title: '编辑', noCache: true },
      hidden: true
    },
    {
      path: 'list',
      name: 'LearnList',
      component: () => import('@/views/learn/list'),
      meta: { title: '列表', icon: 'star', noCache: true }
    },
    {
      path: 'video/:id',
      name: 'LearnVideo',
      component: () => import('@/views/learn/video'),
      meta: { title: '视频管理', icon: 'list', noCache: true },
      hidden: true
    }
  ]
}
